#include "RenzoMustHaveFI.h"
#include "RenzoPrecompiled.h"
#include "RenzoPlugin.h"
#include "RenzoFreeImagePlugin.h"

namespace Renzo {
	static FreeImagePlugin* plugin;

	extern "C" {
		void RENZODERER_API dllStartPlugin() {
			Log::instance()->write("RenzoFreeImage plugin DLL started.");
			plugin = new FreeImagePlugin;
			Renzoderer::instance()->installPlugin(plugin);
		}

		void RENZODERER_API dllStopPlugin() {
			Renzoderer::instance()->uninstallPlugin(plugin);
			delete plugin;
			Log::instance()->write("RenzoFreeImage plugin DLL stopped.");
		}
	}
}